# $Id: PKGBUILD 61004 2011-12-20 11:50:19Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=arm-wince-cegcc-docs
pkgver=0.59.1
pkgrel=1
_prefix=/opt/cegcc
pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
arch=(any)
license=(GPL)
options=(!libtool)
url="http://cegcc.sf.net"
depends=()
groups=('cegcc')
source=(http://arch.p5n.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b')

build() {
  cd $srcdir/cegcc/docs

  mkdir -p $pkgdir/${_prefix}/share/docs
  mkdir -p $pkgdir/${_prefix}/share/images

  tar cf - . | (cd $pkgdir/${_prefix}/share/docs; tar xf -)
  cd ../website
  tar cf - images | (cd $pkgdir/${_prefix}/share; tar xf -)

  cd ..
  cp NEWS README $pkgdir/${_prefix}
  cp src/binutils/COPYING $pkgdir/${_prefix}
  cp src/binutils/COPYING.LIB $pkgdir/${_prefix}
  cp src/binutils/COPYING.NEWLIB $pkgdir/${_prefix}
}
